package com.example.oppo

import java.io.DataInputStream
import java.io.IOException
import java.io.InputStream

class FileUtils {
    var aByte = ByteArray(2)
    var len = 0
    var dataInputStream = DataInputStream(object : InputStream() {
        @Throws(IOException::class)
        override fun read(): Int {
            return 0
        }
    })

    @Throws(IOException::class)
    fun get() {
        while (dataInputStream.read(aByte).also { len = it } != -1) {
        }
    }
}